package com.example.demo.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.example.demo.entity.User;
import com.example.demo.service.UserService;

@Controller
public class SpringController {

    /*@Autowired
    private UserService userService;

    // 查询所有
    @RequestMapping(value = "/api/find")
    public List<User> findAll(Model model) {
        List<User> userList = userService.findAll();
        return userList;
    }*/

}
